package com.cty.Config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

@Configuration
@ComponentScan("com.cty.header")
@EnableWebMvc//该注解会为我们加入RequestMappingHandlerMapping
// ，RequestMappingHandlerAdapter 和为后者加入json处理器
public class MvcConfig {

//    @Bean
//    public RequestMappingHandlerMapping handlerMapping(){
//        return new RequestMappingHandlerMapping();
//    }
//
//    @Bean
//    public RequestMappingHandlerAdapter  handlerAdapter(){
//        return new RequestMappingHandlerAdapter();
//    }
}
